package com.mdoya;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
@Slf4j
@EnableCaching // 开启springboot-cache缓存   默认内存ConcurrentHashMap存放  可以选择redis缓存，导包即可在yml中配置存储时间
@ServletComponentScan // SpringMvc扫描注解
@MapperScan("com.mdoya.mapper")
@SpringBootApplication
public class ReggieServer {
    public static void main(String[] args) {
        log.info("程序开始启动: {}",args);
        SpringApplication.run(ReggieServer.class,args);
        log.info("程序启动成功: {}",args);
    }
}
